package com.gxgeek.javabasic.base.valuepassed;

/**
 * Created by gx on 2017/7/10.
 */
public class TestString {
    public static void test1(Integer num){
        num = new Integer(5);
    }

    public static void test2(String str){
        str.replace("1", "4");
    }

    public static void main(String[] args) {

        Integer num = new Integer(1);
        test1(num);
        // 输出结果为1
        System.out.println(num.intValue());

        String str = new String("123");
        test2(str);
        // 输出结果为123
        System.out.println(str);

    }

}
